/**
 * 
 */
package com.deck.server.shared.domain;

import java.io.Serializable;
import java.util.Set;

import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

/**
 * @author Vincentas
 *
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION, detachable = "false")
public class Deck implements Serializable {

	@PrimaryKey
	private String id;
	
	@Persistent
	private Set<Card> cards;
	
	@Persistent
	private DeckInfo deckInfo;

	/**
	 * @return the id
	 */
	public String getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * @return the cards
	 */
	public Set<Card> getCards() {
		return cards;
	}

	/**
	 * @param cards the cards to set
	 */
	public void setCards(Set<Card> cards) {
		this.cards = cards;
	}

	/**
	 * @return the deckInfo
	 */
	public DeckInfo getDeckInfo() {
		return deckInfo;
	}

	/**
	 * @param deckInfo the deckInfo to set
	 */
	public void setDeckInfo(DeckInfo deckInfo) {
		this.deckInfo = deckInfo;
	}
	
	
	
	
}
